package com.eshore.norm.pojo.po;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author HJ
 * @date 2024/1/9 15:38
 */
@NoArgsConstructor
@Data
public class NormBusNumStatsPO {

    @JsonProperty("message")
    private String message;
    @JsonProperty("content")
    private ContentDTO content;
    @JsonProperty("status")
    private Integer status;
    @JsonProperty("total")
    private Integer total;
    @JsonProperty("timestamp")
    private String timestamp;

    @NoArgsConstructor
    @Data
    public static class ContentDTO {
        @JsonProperty("data_refresh_at")
        private String dataRefreshAt;
        @JsonProperty("bus_num_stat")
        private List<BusNumStatDTO> busNumStat;

        @NoArgsConstructor
        @Data
        public static class BusNumStatDTO {
            @JsonProperty("data_stat_at")
            private String dataStatAt;
            @JsonProperty("bus_low_load_total")
            private Integer busLowLoadTotal;
            @JsonProperty("bus_num_stat")
            private String busNumStat;
            @JsonProperty("bus_total")
            private Integer busTotal;
        }
    }
}
